package com.codingfuture.erp_system.mapper;

import com.codingfuture.erp_system.dto.GoodsDto;
import com.codingfuture.erp_system.entity.Goods;
import com.codingfuture.erp_system.entity.GoodsType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GoodsMapper {

    Goods findById(Integer id);

    int insert(Goods goods);

    List<GoodsType> finAll();

    int update(Goods goods);

    int delete(Integer id);

    List<Goods> findByAll(GoodsDto goodsDto);

    Goods findByName(String name);
}
